import React,{useState} from "react";


function HookState () {

    const [value, setValue] = useState('');

    return (<div>
        <h3>useState-{value}</h3>
        <input type="text" value={value} className="form-control" onChange={event => setValue(event.target.value)}/>
    </div>)
}

export default HookState